<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    <link href="http://libs.baidu.com/bootstrap/3.0.3/css/bootstrap.min.css" rel="stylesheet">
	<link rel="stylesheet" href="../css/mui.min.css">
	<link rel="stylesheet" type="text/css" href="http://cdn.bootcss.com/Swiper/3.3.1/css/swiper.min.css"/>
	<link rel="stylesheet" type="text/css" href="../css/youyi.css"/>
	<link rel="stylesheet" type="text/css" href="../css/environmental.css"/>
    <title>环保验收</title>
    <style>
   		body{background-color: #fff;}
   		.mui-btn-blue, .mui-btn-primary, input[type=submit]{border-color: #5ec520; background-color: #5ec520;}
	</style>	
</head>
<body>
	<div class="mui-content">
		<div class="acceptance_pro" id="showcase">
			<div class="-container">
				<div class="one_con_top">
		            <div class="text-center">
		            	<p class="tell_num"><span>400-960-9288</span></p>
		                <p class="text-uppercase title_englsh">the eia projectthe eia projectthe ei</p>
		                <h3><span>环保验收专题</span></h3>
		            </div>
		            <div class="top_list_box clearfix">
		                <div class="col-xs-4 text-ellipsis one_top_list">
		                <p class="text-center mui-ellipsis">验收条件</p>
		                </div>
		                <div class="col-xs-4 one_top_list">
		                    <p class="text-center mui-ellipsis">危废合同</p>
		                </div>
		                <div class="col-xs-4 one_top_list">
		                    <p class="text-center mui-ellipsis">验收办理时间</p>
		                </div>
		            </div>
		       </div>				
			</div>	<!-- end container -->	
		</div>
		<div class="acceptance_condition">
			<h3 class="one_con_header text-center need_h3"><span>验收条件</span></h3>
			<div class="accept_lists">
				<div class="accep_condit_list accep_condit_list1">
					<ul class="mui-grid-view mui-table-view">
				        <li class="mui-col-xs-6 mui-media mui-table-view-cell active">
				            <a href="##">
				            	<img class="mui-media-object" src="../images/index/tp6.png"/>
				                <div class="maccep_list_body"><p class="mui-ellipsis">幸福就是可以一起睡觉</p></div>
				            </a>
				        </li>
				        <li class="mui-table-view-cell mui-media mui-col-xs-6">
				            <a href="##">
				            	<img class="mui-media-object" src="../images/index/tp7.png"/>
				                <div class="maccep_list_body"><p class="mui-ellipsis">想要一间这样的木屋，静静的喝咖啡</p></div>
				            </a>
				        </li>
				    </ul>
				    <div class="condit_list_conten" style="display: block;">
				    	<span class="hide_btn">X</span>
				    	<p>可能发生事件吟唱索拉卡甲方绿卡甲方珈蓝反垃圾发了考得好咖喱饭婕拉甲方是茄是喜鹊；转码建安大离开激发；老地方建安大；防静电发了； 工</p>
				    </div>
				    <div class="condit_list_conten">
				    	<span class="hide_btn">X</span>
				    	<p>可能发生事件吟唱索拉卡甲方绿卡甲方珈蓝反垃圾发了考得好咖喱饭婕拉甲方是茄是喜鹊；转码建安大离开激发；老地方建安大；防静电发了； 工</p>
				    </div>
				</div>
				<div class="accep_condit_list accep_condit_list2">
					<ul class="mui-grid-view mui-table-view">
				        <li class="mui-col-xs-6 mui-media mui-table-view-cell">
				            <a href="##">
				            	<img class="mui-media-object" src="../images/index/tp8.png"/>
				                <div class="maccep_list_body"><p class="mui-ellipsis">幸福就是可以一起睡觉</p></div>
				            </a>
				        </li>
				        <li class="mui-table-view-cell mui-media mui-col-xs-6">
				            <a href="##">
				            	<img class="mui-media-object" src="../images/index/tp9.png"/>
				                <div class="maccep_list_body"><p class="mui-ellipsis">想要一间这样的木屋，静静的喝咖啡</p></div>
				            </a>
				        </li>
				    </ul>
				    <div class="condit_list_conten">
				    	<span class="hide_btn">X</span>
				    	<p>可能发生事件吟唱索拉卡甲方绿卡甲方珈蓝反垃圾发了考得好咖喱饭婕拉甲方是茄是喜鹊；转码建安大离开激发；老地方建安大；防静电发了； 工</p>
				    </div>
				    <div class="condit_list_conten">
				    	<span class="hide_btn">X</span>
				    	<p>可能发生事件吟唱索拉卡甲方绿卡甲方珈蓝反垃圾发了考得好咖喱饭婕拉甲方是茄是喜鹊可能发生事件吟唱索拉卡甲方绿卡甲方珈蓝反垃圾发了考得好咖喱饭婕拉甲方是茄是喜鹊可能发生事件吟唱索拉卡甲方绿卡甲方珈蓝反垃圾发了考得好咖喱饭婕拉甲方是茄是喜鹊；转码建安大离开激发；老地方建安大；防静电发了； 工</p>
				    </div>
				</div>
				<div class="accep_condit_list accep_condit_list3">
					<ul class="mui-grid-view mui-table-view">
				        <li class="mui-col-xs-6 mui-media mui-table-view-cell">
				            <a href="##">
				            	<img class="mui-media-object" src="../images/index/tp10.png"/>
				                <div class="maccep_list_body"><p class="mui-ellipsis">幸福就是可以一起睡觉</p></div>
				            </a>
				        </li>
				        <li class="mui-table-view-cell mui-media mui-col-xs-6">
				            <a href="##">
				            	<img class="mui-media-object" src="../images/index/tp11.png"/>
				                <div class="maccep_list_body"><p class="mui-ellipsis">想要一间这样的木屋，静静的喝咖啡</p></div>
				            </a>
				        </li>
				    </ul>
				    <div class="condit_list_conten">
				    	<span class="hide_btn">X</span>
				    	<p>可能发生事件吟唱方绿卡甲方珈蓝反垃圾发了考得好咖喱饭婕拉甲方是茄是喜鹊可能发生事件吟唱索拉卡甲方绿卡甲方珈蓝反垃圾发了考得好咖喱饭婕拉甲方是茄是喜鹊；转码建安大离开激发；老地方建安大；防静电发了； 工</p>
				    </div>
				    <div class="condit_list_conten">
				    	<span class="hide_btn">X</span>
				    	<p>可能发生事件吟唱索拉卡甲方绿卡甲方珈蓝反垃圾发了考得好咖喱饭婕拉甲方是茄是喜鹊可能发生事件吟唱索拉卡甲方绿卡甲方珈蓝反垃圾发了考得好咖喱饭婕拉甲方是茄是喜鹊可能发生事件吟唱索拉卡甲方绿卡甲方珈蓝反垃圾发了考得好咖喱饭婕拉甲方是茄是喜鹊可能发生事件吟唱索拉卡甲方绿卡甲方珈蓝反垃圾发了考得好咖喱饭婕拉甲方是茄是喜鹊可能发生事件吟唱索拉卡甲方绿卡甲方珈蓝反垃圾发了考得好咖喱饭婕拉甲方是茄是喜鹊可能发生事件吟唱索拉卡甲方绿卡甲方珈蓝反垃圾发了考得好咖喱饭婕拉甲方是茄是喜鹊；转码建安大离开激发；老地方建安大；防静电发了； 工</p>
				    </div>
				</div>
			</div>
		</div>
		<div class="waste_contract">
			<h3 class="one_con_header text-center need_h3"><span>危废合同</span></h3>
			<div class="waste_con_list">
				<ul class="mui-table-view mui-grid-view">
			        <li class="mui-table-view-cell mui-media mui-col-xs-6 active">
			            <a href="##">
			                <div class="">
			                	<h3>没有危险废物</h3>
			                	<p class="mui-ellipsis-4 mui-text-left">没有危险废物产生的单位可直接申请环保验收。</p>
			                </div>
			            </a>
			        </li>
			        <li class="mui-table-view-cell mui-media mui-col-xs-6">
			            <a href="##">
			                <div class="">
			                	<h3>有危险废物</h3>
			                	<p class="mui-ellipsis-4 mui-text-left">有危险、严控废物及零星废水需要处置的企业申请环保验收时必须提交相应处置合同。时必须提交相应处置合同。</p>
			                </div>
			            </a>
			        </li>
			    </ul>
			</div>
			<div class="app_service addmargin">
				<p><a href="javascript:;">点击此处</a></p>
				<p><a href="javascript:;" class="mui-btn app_service_btn">申请危险废物处置服务</a></p>
			</div>
		</div>
		<div class="legal_period">
			<div class="mui-table-view legal_box">
				<div class="mui-table-view-cell mui-media">
					<a href="javascript:;">
						<img class="mui-media-object mui-pull-left" src="../images/index/iconfont-14052226.png">
						<div class="mui-media-body">
							<p>法定期限：30日</p>
							<p class="mui-ellipsis">承诺期限：环境影响登记表的建设项目为15个工作日，</p>
							<p class="mui-ellipsis">环境影响报告表、书的建设项目为20个工作日</p>
						</div>
					</a>					
				</div>
			</div>
		</div>
		<div class="release_req appect_req">
        	<div class="">
            	<div class="one_con_need">
                    <h3 class="one_con_header text-center need_h3"><span>发布您的<b>环保需求</b></span></h3>
                    <div class="need_form container">
                        <form>
                            <div class="form-group">
                                <textarea class="form-control" rows="3" placeholder="请描述您的环保需求"></textarea>
                            </div>
                          <div class="form-group">
                            <input type="text" class="form-control" id="exampleInputName1" placeholder="请您的姓名">
                          </div>
                          <div class="form-group">
                            <input type="tel" class="form-control" id="exampleInputTel1" placeholder="请输入您的手机号">
                          </div>
                          <div class="form-group">
                            <input type="text" class="form-control" id="exampleInputCom1" placeholder="请输入您的公司名">
                          </div>
                          <div class="form-group location_input">
                            <input type="text" class="form-control" id="exampleInputCom1" placeholder="">
                          </div>
                          <p>*我们承诺为您严格保密，绝不泄漏您的信息</p>
                          <button type="submit" class="btn btn-default" id="submit_btn">确认提交</button>
                        </form>
                    </div>
                </div>
            </div>
        </div>
	</div>
	
<script src="http://libs.baidu.com/jquery/2.0.0/jquery.min.js"></script>
<script src="../js/mui.min.js"></script>
<script src="http://libs.baidu.com/bootstrap/3.0.3/js/bootstrap.min.js"></script>
<script type="text/javascript" src="http://api.map.baidu.com/api?v=3.0&ak=ZM5FnhEj8ZddP3FpGLM85lPFFVvj1Lgr"></script>
<script>
mui.init({
	swipeBack:false ,//启用右滑关闭功能
	keyEventBind:{
		//backbutton: false,  //Boolean(默认true)关闭back按键监听
		menubutton: false   //Boolean(默认true)关闭menu按键监听
	}
});


//表单验证
function checkPhone(_v) {
return (/^1[3|4|5|8][0-9]\d{8}$/.test(_v));
};
document.querySelector("#submit_btn").addEventListener("tap",function(){
	console.log("submit");
	var jsons={};
	var areaText=$("#textarea_input").val();
	var name=$("#exampleInputName1").val();
	var tel=$("#exampleInputTel1").val();
	var com=$("#exampleInputCom1").val();
	var type = 'hpbx';
	var data_source = 'special';
	if((areaText!="" && name!="" && tel!="" && com!="")){
		if(!checkPhone(tel)){
			 mui.toast("手机号不正确！");
			return false;
			};
		$.ajax({
			    type: 'GET',
				cache: false,
                url: 'http://219.135.58.197:9003/jsp/conn_User_Info.jsp?cmd=insertrequirement&queryPhone=' + tel +'&querytype='+ type + '&querydescribe='+ areaText + '&queryusername=' + name + '&querycompany=' + com + '&querydatasource=' + data_source,
                dataType: 'json',
                success: function (data) {
                        mui.toast("感谢您提交的环保需求，我们会尽快联系您！");
					 }
			});
		}else{
			 	mui.toast("内容输入有误！");
				return false;
			};
});

mui(".accep_condit_list").on("tap","li",function(){
	var _this=$(this);
	var theIndex=_this.index();
		_this.addClass("active");
		$(".accep_condit_list li").not(_this).removeClass("active");
	var theConList=_this.closest(".accep_condit_list").find(".condit_list_conten").eq(theIndex);
		$(".condit_list_conten").not(theConList).slideUp(300);
		theConList.slideDown(300);
});

mui(".condit_list_conten").on("tap",".hide_btn",function(){	
	$(".condit_list_conten").slideUp(300);
	$(".accep_condit_list li").removeClass("active");
});

mui(".waste_con_list").on("tap","li",function(){
	$(this).addClass("active").siblings().removeClass("active");
});

//定位
window.onload=function(){
	//经纬度
	var lon=null;
	var lat=null;
	
	var map = new BMap.Map("allmap");
	var point = null;
	var gc = new BMap.Geocoder();
	var adres=null;
	var mycity=null;
		textSpan=document.querySelector(".location_input input");
		navigator.geolocation.getCurrentPosition(function(clbck){
 		lon=clbck.coords.longitude;
 		lat=clbck.coords.latitude;
 		point = new BMap.Point(lon,lat);
 		geobackFn();
    });
    
    var geobackFn=function(){
    	gc.getLocation(point, function(rs){
		   var addComp = rs.addressComponents;
		   	   mycity=addComp.city;
		   	   adres=addComp.province + " " + addComp.city + "" + addComp.district + "" + addComp.street +"" + addComp.streetNumber;
		   	   textSpan.value=adres;
				});
    };
};
</script>
</body>
</ html>